package user

import (
	"context"
)

type CommonUserLoginRecodeRepoIface interface {
	//获取详情
	GetInfo(ctx context.Context, condition map[string]interface{}) (*CommonUserLoginRecord, error)
	GetAvailableLoginRecode(ctx context.Context, token string) (*CommonUserLoginRecord, error)

	//获取列表数据
	GetList(ctx context.Context, condition map[string]interface{}, page, pagesize int, orderBy string) (int64, []*CommonUserLoginRecord, error)
	//更新数据
	Update(ctx context.Context, data, condition map[string]interface{}) (bool, error)
	//插入数据
	Insert(ctx context.Context, commonUserLoginRecode *CommonUserLoginRecord) (bool, error)
	//逻辑删除数据
	Delete(ctx context.Context, condition map[string]interface{}) (bool, error)
	Logout(ctx context.Context, globalUserId string, logoutType string) (bool, error)
	LogoutByToken(ctx context.Context, token string) error
}
